FROM openjdk:8-jdk-font-time
# 设置环境变量
ENV SERVER_PORT=8902
# 暴露端口
EXPOSE ${SERVER_PORT}
# 编译后的 jar 包 copy 到容器中创建到目录内
ADD zeiet-gateway.jar /zeiet-gateway.jar
# 指定容器启动时要执行的命令，并设置端口号
ENTRYPOINT ["java", "-Xms256m", "-Xmx512m", "-jar", "/zeiet-gateway.jar", "--server.port=${SERVER_PORT}", "-Dfile.encoding=UTF-8"]
